package com.oracle.user.contrller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/getPayment/{id}")
//    @RequestMapping(value = "/payment/getPayment/{id}",method = RequestMethod.GET)
    public String getPayment(@PathVariable("id") Long did) {
        return "nacos registry, serverPort: "+ serverPort+"\t id"+did;
    }


}
